package com.example.online_forum.services;

import com.example.online_forum.model.ArticleReply;
import org.apache.ibatis.annotations.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 回复层
 */
public interface IArticleReplyService {
    /**
     * 新增帖子回复
     * @param articleReply
     */
    @Transactional
    void create(ArticleReply articleReply);
    List<ArticleReply> selectByArticleId(@Param("articleId") Long articleId);
}
